package com.tbit.uqbike.webmanager.dao.core;

import com.tbit.uqbike.object.pojo.ParkPointBound;
import com.tbit.uqbike.object.pojo.ParkPointBoundAbnormal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author HZW
 * @ClassName EquipmentMaintainDao
 * @Description
 * @date 2021/12/16 9:57
 * @Version 1.0
 */
public interface EquipmentMaintainDao {
    /**
     * 获取设备异常总数
     */
    List<ParkPointBoundAbnormal> selectAbnormalTotal(ParkPointBoundAbnormal parkPointBoundAbnormal);

    /**
     * 获取rfid信息详情
     */
    Integer getRFIDTotal(ParkPointBound parkPointBound);

    /**
     * 获取rfid信息详情
     */
    List<ParkPointBound> getRFIDInfo(ParkPointBound parkPointBound);

    /**
     * 删除rfid设备
     */
    Integer delRFIDById(ParkPointBound parkPointBound);

    /**
     * 批量新增rfid设备
     */
    Integer addBatchRFID(List<ParkPointBound> pointBoundList);

    /**
     * 根据设备类型查询记录
     */
    List<ParkPointBoundAbnormal> selectAbnormalByType(ParkPointBoundAbnormal parkPointBoundAbnormal);

    /**
     * 获取RFID的数据
     */
    List<ParkPointBoundAbnormal> getData(ParkPointBoundAbnormal parkPointBoundAbnormal);

    /**
     * 获取道钉的数据
     */
    List<ParkPointBoundAbnormal> getSpikeData(@Param("accountId") Integer accountId, @Param("parkPointName") String parkPointName);


}
